package com.cloud.drore.eboss.operation.entity.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.cloud.drore.eboos.common.base.BaseEntity;
import com.cloud.drore.eboss.jackson.JacksonDateDeserializer;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;


/**
 * 浙江卓锐科技股份有限公司 版权所有  Copyright 2018<br>
 *
 * @Description: 供应商结算信息vo<br>
 * @Project: eboos <br>
 * @CreateDate: Created in 2018/1/24 0024 下午 4:42 <br>
 * @Author: <a href="410508961@qq.com">夏凯</a>
 */
@Data
public class SupplierSettlementInfoVo extends BaseEntity<Long> {

    /**
     * 供应商id
     */
    @JsonProperty("supplier_id")
    @JSONField(name = "supplier_id")
    @ApiModelProperty(name = "supplier_id", notes = "供应商id", example = "1")
    private Long supplierId;

    /**
     * 供应商名称
     */
    @JsonProperty("supplier_name")
    @JSONField(name = "supplier_name")
    @ApiModelProperty(name = "supplier_name", notes = "供应商名称", example = "天台山")
    private String supplierName;

    /**
     * 供应商结算的状态
     */
    @JsonProperty("settlement_state")
    @JSONField(name = "settlement_state")
    @ApiModelProperty(name = "settlement_state", notes = "供应商结算的状态", example = "0")
    private int settlementState;


    /**
     * 结算触发时间
     */
    @JsonDeserialize(using = JacksonDateDeserializer.class)
    @JsonProperty("settlement_date")
    @JSONField(name = "settlement_date", format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(name = "settlement_date", notes = "上一次结算时间", example = "2018-01-05")
    private Date settlementDate;

    /**
     * 测试使用的标识
     */
    @JsonProperty("state")
    @JSONField(name = "state")
    @ApiModelProperty(name = "state", notes = "测试使用的标识", example = "1")
    private String state;

}
